WASTE is a text editing library for Macintosh programmers.
Designed to be a viable replacement for TextEdit, WASTE offers several enhancements, the major one being the ability to handle text files larger than 32K.
Like TextEdit, WASTE handles multi-styled text and relies on the services offered by the Script Manager for drawing, measuring and hit-testing the text and for finding word and line breaks. The built-in support for inline input makes WASTE fully WorldScript II-compliant (on the other hand, bidirectional scripts, like Arabic, are not supported).
For the latest news about WASTE, look up this web page:
<http://cirrus.sprl.umich.edu/waste>
You can download the latest updates from the following site:
<ftp://rhino.harvard.edu/pub/dan/WASTE/>
WASTE 1.2 is now C code, based on Dan Crevier’s port of version 1.1.
The pascal version is no longer supported, although pascal interface files are included. There’s also a new demo app, rewritten in C by John C. Daub and me, based on the original pascal demo.
This document is provided mainly to give you an opportunity to play with the WASTE Demo application; the real documentation is in a separate file in Acrobat format.
The C sources for WASTE and for a demo application have been successfully compiled with the following compilers:
• Metrowerks C/C++ 68K 1.4
• Metrowerks C/C++ PPC 1.4
• Symantec C++ 8.0.3
The sources are based on Apple’s Universal Headers version 2.1.
Changes from version 1.1
(see the Change History document)
Changes from version 1.0
There are many significant changes from version 1.0, including:
• Embedded objects. WASTE 1.1 lets you embed pictures and other objects in the text as if they were ordinary glyphs.
• Built-in support for the Drag Manager.
• Built-in undo.
• Low-level hooks for drawing and measuring text. Although these hooks are still undocumented, the WASTE Demo application contains sample code showing how these hooks can be used to implement real tabs.
WASTE Mailing List
Dan Crevier maintains the WASTE Mailing List using Majordomo (an automated listserver). To join the list, send a request to:
<mailto:Majordomo@rhino.harvard.edu>
With the words:
subscribe waste
in the body of the message (the subject is ignored).
To post a message to the list, send it to:
<mailto:waste@rhino.harvard.edu>
Please notice that the original WASTE Mailing List,
<mailto:waste@umich.edu>
which used to be manually maintained by Alan Steremberg, is no longer operative.
WASTE Web Page
There is also a WWW page dedicated to WASTE, kindly maintained by Alan Steremberg (<mailto:alans@umich.edu>) and Dan Crevier:
<http://cirrus.sprl.umich.edu/waste>
Internet Config
The WASTE Demo supports command clicking of URLs using Internet Config (version 1.1 or newer), which you can download from: